package com.example.demo.serviceipml;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.dao.powerDao;
import com.example.demo.entify.Power;
import com.example.demo.entify.User;
import com.example.demo.service.powerService;
@Service
public class powerServiceImp implements powerService {

	
    @Autowired
	private powerDao powerdao;
    @Override
	public List<Power> Allpower() {
		// TODO Auto-generated method stub
		return powerdao.Allpower();
	}
	@Override
	public int updatepower(User user) {
		// TODO Auto-generated method stub
		return powerdao.updatepower(user);
	}
	
	
	

}
